package com.qf.controller;

import com.qf.service.GorderItemService;
import com.qf.utils.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/gorderItem")
public class GorderItemController {

    @Autowired
    GorderItemService gorderItemService;

    @GetMapping("/selectOne")//根据订单ID查询订单详情
    public ResultMsg selectOne(String gorderId){
        return gorderItemService.selectOne(gorderId);
    }

}
